/*
 * Created using SharpDevelop.
 * User: Steve
 * Date: 4/11/2006
 * Time: 7:25 PM
 * 
 */

using System;

namespace Mokey.Common
{
	public static class BooleanHelper
	{
		public static bool TryParseOrDefault(string stringToParse, out bool result, bool valueOnFail)
		{
			if (bool.TryParse(stringToParse, out result))
			{
				return true;
			}
			else
			{
				result = valueOnFail;
				return false;
			}
		}
	}
}
